package com.project.mapper;

import com.project.bean.SpeakBean;
import org.apache.ibatis.annotations.Insert;

/**
 * 评价mapper接口
 */
public interface ISpeakMapper {
    /**
     * 添加评论信息
     * @param speak 评论对象
     */
    @Insert("INSERT INTO t_speak(fk_userId,fk_productId,s_content)" +
            " values(#{user.id},#{product.id},#{content})")
    public void addSpeak(SpeakBean speak);
}
